{% load i18n %}
<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
{% if show_save %}
    <input type="submit" value="{% trans 'Save' %}" 
        class="ui-widget ui-state-default ui-corner-all ui-default" name="_save" {{ onclick_attrib }}/>
{% endif %}

{% if show_delete_link %}

<a class="xbutton ui-state-default ui-corner-all ui-state-error delete" {{ onclick_attrib }} href="delete/">
    <span class="ui-icon ui-icon-trash"></span>{% trans 'Delete' %}
</a>    

{% endif %}

{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }} class="ui-widget ui-state-default ui-corner-all"/>{%endif%}
{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} class="ui-widget ui-state-default ui-corner-all"/>{% endif %}
{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }} class="ui-widget ui-state-default ui-corner-all"/>{% endif %}
</div>
